﻿namespace LaserMark.Components.Events;

/// <summary>
/// 空 EventBus
/// </summary>
public class NullEventBus : IRibbonTabEventBus
{
    /// <summary>
    /// <inheritdoc/>
    /// </summary>
    /// <param name="eventMessage"></param>
    /// <returns></returns>
    public Task PublishAsync(RibbonTabEventMessage eventMessage) => Task.CompletedTask;

    /// <summary>
    /// <inheritdoc/>
    /// </summary>
    /// <param name="@event"></param>
    public void RegisterHandler(RibbonTabEvent @event)
    {

    }

    /// <summary>
    /// <inheritdoc/>
    /// </summary>
    /// <param name="@event"></param>
    public void UnRegister(RibbonTabEvent @event)
    {

    }
}
